<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script>
			window.onload = function() {
				var m = "2019.01.10-2029.01.10";
				var n = m.replace(/\./g, '');
			}
		</script>
	</body>

</html>